package com.feng.shiro.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
    @RequestMapping({"/","/index"})
    public String toIndexPage(Model model){
        model.addAttribute("msg","Hello Shiro");
        return "index";
    }
}